<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>收货地址更新 - 盲盒商城系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header"/>
		<div id="mainBody">
			<div class="container">
				<div class="row">
					<%@ include file="/common/include/leftBar.jsp"%>
					<form class="form-horizontal" method="post" action="${rootPath }/head/users/addressUpdateSubmit">
						<div class="span9">
							<ul class="breadcrumb">
								<li><a href="${rootPath }/head/users/main">首页</a><span class="divider">/</span></li>
								<li class="active">个人中心</li>
							</ul>
							<table class="table table-bordered">
								<tbody>
									<tr>
										<th>收货信息</th>
									</tr>
									<tr>
										<td>
											<input type="hidden" name="operType" value="${param.operType }">
											<input type="hidden" name="id" value="${one.addressId}">
											<div class="control-group">
												<label class="control-label" for="receName">收货人姓名</label>
												<div class="controls">
													<input type="text" id="consigneeName" placeholder="收货人姓名" name="consigneeName" value="${one.consigneeName}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="recePhone">收货人手机</label>
												<div class="controls">
													<input type="text" id="consigneeNumber" placeholder="收货人手机" name="consigneeNumber" value="${one.consigneeNumber}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="receAddress">收货人地址</label>
												<div class="controls">
													<input type="text" id="addressInformation" placeholder="收货人地址" name="addressInformation" value="${one.addressInformation}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="receAddress">邮编</label>
												<div class="controls">
													<input type="text" id="postal" placeholder="邮编" name="postal" value="${one.postal}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="receAddress">是否默认</label>
												<div class="controls">
													<label style="display: inline;">
														<input type="radio" name="isTheDefaultAddress" value="1" ${one.isTheDefaultAddress == '1' ? 'checked' : ''}>是
													</label>
													<label style="display: inline;">
														<input type="radio" name="isTheDefaultAddress" value="0" ${one.isTheDefaultAddress == '0' ? 'checked' : '' }>否
													</label>
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>${requestScope.response.info}</td>
									</tr>
								</tbody>
							</table>
							<button type="submit" class="btn btn-large pull-right">
								提交
							</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>